
<div id="content">
    <table id="tablepays">
        <tr class="titretable">
            <td>Titre</td>
            <td>Type</td>
            <td>Date</td>
            <td>Modifier</td>
            <td>Supprimer</td>
        </tr>
        <?php
        foreach ($lesNews as $unenews) {
            echo'<tr class="contenutable">';
            echo'<td>';
            echo $unenews["TITRENEWS"];
            echo'</td>';
            echo'<td>';
            echo $unenews["TYPENEWS"];
            echo'</td>';
            echo'<td>';
            echo $unenews["DATENEWS"];
            echo'</td>';
            echo'<td>';
            echo '<a href="index.php?route=news&action=modifier&IdNews=' . $unenews["IDNEWS"] . '"><img src="./images/modifier.png"/></a>';
            echo'</td>';
            echo'<td>';
            echo '<a  class="confirmModal"  href="index.php?route=news&action=supprimer&IDNEWS=' . $unenews["IDNEWS"] . '"><img src="./images/supprimer.png"/></a><br/>';
            echo'</td>';
        }
        ?>
    </table>

    <a href="index.php?route=news&action=ajouter"><img src="./images/ajouter.png"/></a>

    <div id="dialog-confirm" title="Confirmation de la suppression" style="display:none;">
        <p>
            <span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>
            Etes-vous sûr de vouloir supprimer cet élément ?
        </p>
    </div></div>
